<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>新增汽车信息</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
  <header>
    <h1>新增汽车信息</h1>
    <nav>
      <ul>
        <li><a href="index.jsp">主页</a></li>
        <li><a href="getList.action">系统管理</a></li>
        <li><a href="customer-management.jsp">客户信息管理</a></li>
        <li><a href="car-management.jsp">汽车信息管理</a></li>
        <li><a href="employee-management.jsp">员工信息管理</a></li>
        <li><a href="sales-management.jsp">销售信息管理</a></li>
      </ul>
    </nav>
  </header>

  <div class="content">
    <h2>请输入汽车信息</h2>
    <form action="addCar.action" method="post">
      <table>
        <tr>
          <td><label for="carModel">车型：</label></td>
          <td><input type="text" id="car.carModel" name="car.carModel" required></td>
        </tr>
        <tr>
          <td><label for="version">版本：</label></td>
          <td><input type="text" id="car.version" name="car.version" required></td>
        </tr>
        <tr>
          <td><label for="year">年款：</label></td>
          <td><input type="text" id="car.year" name="car.year" required></td>
        </tr>
        <tr>
          <td><label for="color">颜色：</label></td>
          <td><input type="text" id="car.color" name="car.color" required></td>
        </tr>
        <tr>
          <td><label for="price">价格：</label></td>
          <td><input type="number" id="car.price" name="car.price" step="0.01" required></td>
        </tr>
        <tr>
          <td><label for="stock">库存量：</label></td>
          <td><input type="number" id="car.stock" name="car.stock" required></td>
        </tr>
        <tr>
          <td><label for="status">状态：</label></td>
          <td>
              <input type="radio" id="car.status.selling" name="car.status" value="在售" required>
              <label for="car.status.selling">在售</label>
              <input type="radio" id="car.status.preSale" name="car.status" value="预售" required>
              <label for="car.status.preSale">预售</label>
              <input type="radio" id="car.status.stopSale" name="car.status" value="停售" required>
              <label for="car.status.stopSale">停售</label>
          </td>
        </tr>
      </table>
      <br>
      <button type="submit">提交</button>
      <button type="reset">重置</button>
    </form>
  </div>
</body>
</html>
